<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<c-rt:if test="${!empty param.questionID || !empty param.id}">
	<c-rt:if test="${!empty param.questionID}">
		<c-rt:set var="questionID">${param.questionID}</c-rt:set>
	</c-rt:if> 
	<c-rt:if test="${!empty param.id}">
		<c-rt:set var="questionID">${param.id}</c-rt:set>
	</c-rt:if>
	
	<c-rt:set var="question" value="${pu:get('com.yaodian100.crm.cs.entity.Question', questionID)}"/>
</c-rt:if>
<c-rt:set var="questionTypes" value="${pu:queryByHql('from QuestionType', null, null)}"/>
<c-rt:set var="fromChannels" value="${pu:queryByHql('from FromChannel', null, null)}"/>
<br/>
<c-rt:if test="${empty param.formType}">
<c-rt:set var="formType" value="问题单"/>
</c-rt:if>
<c-rt:if test="${!empty param.formType}">
<c-rt:set var="formType" value="工单"/>
</c-rt:if>
<h1>
选择${formType }类型</h1>


<table class="tb-data" width="100%">
<tr><th width="130px">${formType }类型</th><td>

<c-rt:forEach items="${questionTypes}" var="qt" varStatus="index">
<form method="post" id="theForm${index.index }" name="theForm${index.index }">
	<input type="hidden" name="questionType" value="${qt.name }"/>
</form>
<a href="javascript:;" onClick="doAR('<%=application.getContextPath() %>/cs/page.do?questionType=${qt.name }&iamlazy=question&formType=${param.formType }', 'main', 'theForm${index.index }')">${qt.description }</a>
<%--
	<a href="javascript:;" onClick="doAR('<%=application.getContextPath() %>/cs/page.do?iamlazy=${qt.name }&formType=${param.formType }', 'main', 'theForm${index.index }')">${qt.description }</a>
 --%>
</c-rt:forEach>
</td></tr>
	
	</table>


